package org.ccay.enumerable.mybatis;

import org.ccay.enumerable.EnumItem;
import org.ccay.enumerable.EnumUtil;

/**
 * Mybatis支持
 * @author chaowangbang
 *
 */
public class JustValueEnumItem implements EnumItem {
	/**
	 * 
	 */
	private static final long serialVersionUID = 20171128L;

	public JustValueEnumItem(String value) {
		this.value = value;
	}

	private String value;
	
	@Override
	public String getType() {
		throw new IllegalAccessError();
	}

	@Override
	public String getName() {
		throw new IllegalAccessError();
	}

	@Override
	public String getValue() {
		return value;
	}

	@Override
	public String getDisplayValue() {
		throw new IllegalAccessError();
	}

	@Override
	public int getIndex() {
		throw new IllegalAccessError();
	}

	@Override
	public String getSource() {
		throw new IllegalAccessError();
	}

	@Override
	public String getDisplayValue(String language) {
		throw new IllegalAccessError();
	}

	@Override
	public EnumItem<Object> fromValue(String value) {
		throw new IllegalAccessError();
	}
}
